<template>
   <div @click="father">
    <h1>v-on练习</h1>
    <a href="http://www.baidu.com" @click.prevent.stop="fn">百度</a>
     <a href="http://www.baidu.com" @click.prevent>百度</a>
     <input type="text" placeholder="请输入内容" @keydown.esc="fn1">
    </div>
</template>

<script>
export default {
data() {
    return {
        money:1000
    }
},
methods: {
    fn() {
        console.log('hhh');
    },
    father() {
        console.log('www');
    },
    fn1 () {
        console.log('ooo');
    }
}
}
</script>

<style>

</style>